package com.reach.redis.utils;

import com.google.gson.Gson;

public class GsonUtils {
	public static final Gson son = new Gson();
	
	public static String toString(Object value) {
		try {
			if(value == null || "null".equals(value)) {
				return "";
			}
			return son.toJson(value);
		}catch(Exception e) {
			e.printStackTrace();
			return "";
		}
	}
}
